#ifndef CLIENT_H
#define CLIENT_H

#include "interpreter.h"
#include "dom.h"

#include <boost/shared_ptr.hpp>

#include <list>
#include <string> 
#include <iostream>

using namespace std;

namespace model {
	class client {
	public:
		client() {}
		client(const model::dom &node);
		client(const string &n, const list<model::interpreter> &i) 
		: _name(n), _interpreters(i) {}
		~client() {}

		void parse(const model::dom &node);

		void set_name(const string &n) {_name = n;}
		const string& get_name() const {return _name;}

		void set_interpreters(const list<model::interpreter> i)
		{
			_interpreters = i;
		}
		const list<model::interpreter>& get_interpreters() const 
		{
			return _interpreters;
		}
		list<model::interpreter>& get_interpreters()
		{
			return _interpreters;
		}

		void print() const;
	private:
		string _name;
		list<model::interpreter> _interpreters;
	};
}

#endif
